package game;

import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.event.KeyEvent;

public class Congrats extends Scene
{
	Background background;
	static int pontuacao;
	
	public Congrats()
	{
		background = new Background(9);
	}
	
	
	@Override
	public void update() 
	{
		if(Keyboard.getInstance().isKeyPressed(KeyEvent.VK_ESCAPE))
		{
			SceneManager.changeScene(7);
		}
	}

	@Override
	public void draw(Graphics2D g2d) 
	{
		background.draw(g2d);
		Point sizeOpcao = new Point(100, 38);
		//opcao back menu
		g2d.drawImage(LoadImages.getImage(45),
				0,
				Game.screenHeigth - (int)sizeOpcao.getY(), null);
	}

}
